﻿#ifndef PROGRESSSCREENSHOTTHREAD_H
#define PROGRESSSCREENSHOTTHREAD_H

#include <QPixmap>
#include <QThread>
#include <progressmanage.h>
#include <progressscreenshot.h>
#include <progressservice.h>

//#include "vld.h"

class ProgressScreenshotThread : public QThread
{
    Q_OBJECT
public:
    explicit ProgressScreenshotThread(QObject *parent = nullptr);
    ~ProgressScreenshotThread();
    void stop();
    void setOpenScreenshot(bool value);

signals:
    void signal_progressScreenshot(uint64_t progressId,QPixmap pixmap);
    void signal_progressScreenshotData(uint64_t progressId,QByteArray byteArray);
private:
    void packProgressScreenshotData(uint64_t progressId, QPixmap pixmap);
private:
    bool isRun;
    bool openScreenshot;
    ProgressManage progressManage;
    ProgressScreenshot progressScreenshot;
    ProgressService progressService;
protected:
    void run() override;
};

#endif // PROGRESSSCREENSHOTTHREAD_H
